Skip to content

New: Add span wrapper around view button text (fixes #211) #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 13, 2025

Conversation

swashbuck
Copy link
Contributor

@swashbuck swashbuck commented May 1, 2025

Fix #211

New

  • Add a span wrapper around the view button text. This will make it easier to hide the text if we want an icon-only button.

Notes

In #217 , I have suggested the option to add an icon to the button via config.

Copy link
Contributor

@kirsty-hames kirsty-hames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @swashbuck. I've previously used font-size: 0 to visually hide linkText whilst keeping it accessible for SRs however wrapping the text using a <span> is much cleaner and consistent with other Adapt buttons containing text and/or icons.

This works as expected thanks and I'm also in favour of #217 :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@oliverfoster oliverfoster merged commit 1081a4a into master May 13, 2025
@oliverfoster oliverfoster deleted the issue/211 branch May 13, 2025 08:11
@github-project-automation github-project-automation bot moved this from Needs Reviewing to Recently Released in adapt_framework: The TODO Board May 13, 2025
github-actions bot pushed a commit that referenced this pull request May 13, 2025
# [7.3.0](v7.2.0...v7.3.0) (2025-05-13)

### New

* Add span wrapper around view button text (fixes #211) (#216) ([1081a4a](1081a4a)), closes [#211](#211) [#216](#216)
Copy link

🎉 This PR is included in version 7.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Recently Released
Development

Successfully merging this pull request may close these issues.

Hiding box menu item button text
4 participants